<template>
  <div class="work-record-header">
    <el-row>
      <el-col :span="24">
        <!-- 搜索部分 -->
        <el-form :inline="true" :model="search" class="demo-form-inline">
          <el-form-item label="测试随工单编号">
            <el-input v-model="search.lotId" placeholder="请输入内容" clearable size="mini"/>
          </el-form-item>
          <el-form-item label="工单号">
            <el-input v-model="search.holdCode" placeholder="请输入内容" clearable size="mini"/>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" size="mini" @click="doSearch">{{ $t('search') }}</el-button>
          </el-form-item>
        </el-form>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  name: 'WorkRecordHeader',
  data() {
    return {
      search: {}
    }
  },
  methods: {
    doSearch() {
      this.$emit('doSearch', this.search)
    }
  }
}
</script>
<style lang="scss" scoped>
.el-row {
  min-height: 46px;
  padding: 10px;
  background-color: #fff;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409eff;
}
.el-icon-arrow-down {
  font-size: 12px;
}
.el-form-item {
  margin-bottom: 0;
}
</style>
<style lang="scss" scoped>
@import "~@/assets/styles/defaultStyle.scss";
</style>
